from django.urls import path
from . import views
from . import esviews


urlpatterns = [
    path('dingtalkLogin/', views.Dingtalk.as_view()),
    path('dingtalkCallback/', views.DingtalkCallback.as_view()),
    path('sflogin/', views.Sflogin.as_view()),
    path('third/',views.Sfget.as_view()),
    path('upload/', views.upload_to_oss, name='upload_to_oss'),
    path('idcard/', views.IdCardView.as_view()),
    path('userinfo/', views.BaiduUsermes.as_view()),
    path('face/', views.FaceRecognitionView.as_view()),
    path('goods/', views.UserBrowserView.as_view()),
    path('test/', views.UserGoodsView.as_view()),

    # 将数据写入CSV文件中
    path('csv/', views.get_csv, name='writecsv'),

    # 读取推荐视图
    path('recommend/', views.RecommendView.as_view(), name='recommend'),


    # es
    path('es/', esviews.DataSyncView.as_view(), name='es'),
    path('search/', esviews.MultiTableSearchView.as_view()),


    # websocket
    path('testweb/', views.TestWebsocketEcharts.as_view()),
    path('web/',views.InitializeIndexes.as_view()),

]